Increase options of radioBox

Hello, 

 

It is possible to increase the values of a radioBox?

 

Example

 

I have 2 differents radioBox

string a[] = {"1", "2", "3"}
string b[] = {"a", "b", "c"}
DB window = create "Test DB"
DBE test = radioBox (window, "Test top", a, 1)
DBE test2 = radioBox (window, "Test top 2", b, 1)

realize window

 

If i click on radio "test top 2" option a, automatically the "Test top" should have the following options "1", "2", "3", "4"

if i click on rario "test top 2" option b, automatically the "Test top" should have the following options "1", "2"

 

Thanks


Gandara - Thu Jan 14 11:32:21 EST 2016

Re: Increase options of radioBox
Richard_Hesketh - Fri Jan 15 10:21:35 EST 2016

If it absolutely, positively has to present as a radioBox (and not, say, as a choice, or list element), and you know the permutations and array values before displaying the DB, then you could just create multiple radioBox elements and show/hide them for given selections of test2, e.g.:

string b[] = {"a", "b", "c"}
string c[] = {"d", "e"}
string d[] = {"g", "h", "i", "j"}

string a[] = {"1", "2", "3"}

DB window = create "Test DB"
DBE testb = radioBox (window, "Test b", b, 0)
DBE testc = radioBox (window, "Test c", c, 0)
DBE testd = radioBox (window, "Test d", d, 0)

DBE testa = radioBox (window, "Test a", a, 0)

void showRBs (DBE dbeSrc)
{
  int intSel = get dbeSrc
 
  if (intSel == 0) { show testb; hide testc; hide testd }
  if (intSel == 1) { hide testb; show testc; hide testd }
  if (intSel == 2) { hide testb; hide testc; show testd }
}

realize window

hide testc
hide testd

set (testa, showRBs)

show window

Re: Increase options of radioBox
Gandara - Tue Jan 19 10:04:41 EST 2016

Hello! 

 

Thanks for your reply, but what i need is that the radioBox was in the same position and the same radioBox, not change for another radio box in another place, because we have a lot of DBE in our interface. 

 

I´m still investigate about it. 

 

Thanks